package c.c.a;

import android.content.Context;
import android.text.TextUtils;
import c.b.a.a.a;
import org.json.JSONObject;

public class z1 extends b2 {
    public final Context e;
    public final g2 f;

    public z1(Context context, g2 g2Var) {
        super(true, false);
        this.e = context;
        this.f = g2Var;
    }

    public boolean b(JSONObject jSONObject) {
        if (!TextUtils.isEmpty(this.f.b.getAbClient())) {
            jSONObject.put("ab_client", this.f.b.getAbClient());
        }
        if (!TextUtils.isEmpty(this.f.c())) {
            if (m0.b) {
                StringBuilder g = a.g("init config has abversion:");
                g.append(this.f.c());
                m0.a(g.toString(), null);
            }
            jSONObject.put("ab_version", this.f.c());
        }
        if (!TextUtils.isEmpty(this.f.b.getAbGroup())) {
            jSONObject.put("ab_group", this.f.b.getAbGroup());
        }
        if (!TextUtils.isEmpty(this.f.b.getAbFeature())) {
            jSONObject.put("ab_feature", this.f.b.getAbFeature());
        }
        return true;
    }
}
